/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
	font-family:'Cuprum', sans-serif;
    font-size: 1em;
    line-height: 1.4;
    min-width: 18em;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
   
/* HEADER and its elements*/
header.topbar{
	postion: relative;
	background-color: #2CCDFE;
	height: 4.2em;
	color: #FFFFFF;
	width: 100%;
	position: relative;
}
header.topbar h1{
	font-family: 'Advent Pro', sans-serif;
	font-size: 1.8em;
	font-weight: normal;
	margin: 0;
	padding: 0.5em;
	z-index: 10;
}

/* main LOGO and login items */
div.mainLogo{
	background: url("../images/rmdh.gif") no-repeat;
	background-size: 45em;
	width: 50em;
	height: 18.6em;
	margin: 1em auto 0;
}

div.boxHolder{
	width:100%;
	background: none #F7F7F7;
	position: relative;
	min-height: 18em;
}
div.loginbox{
	width: 16em;
	padding: 3em 10em;
	margin: 1em auto 0;
	border-top: 0.2em solid #2CCDFE;
}
div.loginbox label{
	color: #2CCDFE;
}

div.loginbox input[type=text], div.loginbox input[type=password]{
	height: 1.8em;
	margin-bottom: 1.5em;
	width: 15em;
}


/* LEFT navigation bar */
nav.navpane{
	width: 16em;
	background-color: #EEEEEE;
	height: 100%;
	position: absolute;
	z-index: -10;
	top:0;
}

nav.navpane ul{
	position: relative;
	top: 4.2em;
	padding-left: 0;
	margin:0;
}
nav.navpane ul li{
	padding: 1.0em;
	height: 1em;
	cursor: pointer;
	border-bottom: 0.08em solid #FFFFFF;
}

nav.navpane ul li:last-child{
	border-bottom: none;
}
nav.navpane ul li.selected{
	background-color: #2DB7E1;
	color: #FFFFFF;
}
nav.navpane ul li:hover{
	background-color: #AEDBE9;
	color: #000000;
}

/*Main content section*/
section.content{
	left: 16em;
	padding: 1em;
	z-index: -9;
	position: absolute;
	background-color: #FFFFFF;
	height: auto;
	min-width: 16em;
}
section.content h2{
	color: #2CCDFE;
	border-bottom: 0.05em solid #2CCDFE;
	margin-top: 0;
}

/*session message*/
div.session_message{
	/*margin-left: 16em; could not click the left menu, hide it overall*/
	background-color: #00BB00;
	color: #FFFFFF;
	padding: 0.83em 0.5em;
	text-align: center;
	cursor: pointer;
}

/*forms*/
section.content label{
	display:block;
	color: #2CCDFE;
}
section.content input{
	display:block;
}
form.generic{
	width: 40em;
}
form.generic label, form.generic input{
	float: left;
}
form.generic label{
	width: 19em;
	text-align: right;
	padding-right: 1em;
}
form.generic input, form.generic select{
	width: 19.5em;
}
div.formRow{
	margin-bottom: 1em;
}
div.formRow:after{
	display: block;
		clear: both;
		content: " ";
		height: 0;
		overflow: hidden;
}

div.formRow div.rightGrid{
	width: 19.5em;
	float: left;
}
div.formRow div.rightGrid label{
	float: left;
	width:80%;
	text-align: left;
}
div.formRow div.rightGrid input[type="radio"]{
	float: left;
	width: 10%;
	margin-top: 0.2em;
}
div.formRow input[type="submit"]{
	width: 10em;
}
/*single input button*/
div.formRow input[type="submit"]:first-child:nth-last-child(1) {
    float: right;
}
/*two input buttons*/
div.formRow input[type="submit"]:first-child:nth-last-child(2),
div.formRow input[type="submit"]:first-child:nth-last-child(2) ~ div.formRow input[type="submit"] {
    float: left;
}

div.formRow span.error{
	font-size: 0.8em;
	color: #FF0000;
	float: right;
}


/*ElEMENTS*/
/*left arrow (for nav selected)*/
.leftArrow{
	width: 0; 
	height: 0; 
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent; 
	border-right:10px solid #FFFFFF;
	position:absolute;
	right: 0;
	z-index: 11;
	top: 80px;
}

/*submit button in the login page*/
.submitButton{
	margin: 0 !important;
	padding: 0.5em 6.7em !important
}

/*notice normal*/
p.notice{
	margin: 0;
	width:100%;
	text-align:center;
	position: absolute;
}

.btn{
	cursor: pointer;
	border-radius: 0.3em;
	padding: 0.6em 2.5em;
	background-color: #2DB7E1;
	color: #FFFFFF;
	text-decoration: none;
	text-transform:uppercase;
	border-style:none;
	font-family:'Cuprum', sans-serif;
}
.btn:hover{
	background-color: #2CCDFE;
}

a.helpbutton{
	color: #FFFFFF;
	text-decoration: none;
	border-radius: 1em;
	/*border: 0.16em solid #FFFFFF;*/
	width: 1.35em;
	height: 1.35em;
	line-height: 1.4em;
	font-weight: bold;
	padding: 0.25em;
	text-align: center;
	position: absolute;
	top:1em;
	right: 5em;
	cursor: pointer;
	background-color: #2DB7E1;
    background-image: linear-gradient(to bottom, #2DB7E1, #2DB7E1);
    background-repeat: repeat-x;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.075);
    
}

/*menu bar button*/
.navbutton{
	position:absolute;
	top:1em;
	right: 0.5em;
}
.navbutton .btn-navbar {
    background-color: #2DB7E1;
    background-image: linear-gradient(to bottom, #2DB7E1, #2DB7E1);
    background-repeat: repeat-x;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.075);
    color: #FFFFFF;
    display: block;
    float: right;
    margin-left: 0.5em;
    margin-right: 0.5em;
    padding: 0.5em;
    text-shadow: 0 -0.5em 0 rgba(0, 0, 0, 0.25);
}
.navbutton .btn-navbar:hover, .navbutton .btn-navbar:active, .navbutton .btn-navbar.active, .navbutton .btn-navbar.disabled, .navbutton .btn-navbar[disabled] {
    background-color: #E5E5E5;
    color: #FFFFFF;
}
.navbutton .btn-navbar:active, .navbar .btn-navbar.active {
}
.navbutton .btn-navbar .icon-bar {
    background-color: #FFFFFF;
    border-radius: 0.2em;
    box-shadow: 0 0.1em 0 rgba(0, 0, 0, 0.25);
    display: block;
    height: 0.15em;
    width: 1.2em;
}

.btn-navbar .icon-bar + .icon-bar {
    margin-top: 0.2em;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 64em) {
    /* Style adjustments for tablets? */
    div.mainLogo{
    	background-size: 30em;
    	width: 30em;
    	height: 12.4em;
    }
    div.loginbox{
    	width: 15em;
    	padding: 3em 5em;
    }
    section.content{
    	/*top:4.2em;*/
    }
    
    /*Forms and form elements*/
	form.generic{
		width: 25em;
	}
	
	form.generic label{
		text-align: left;
	}
	
	/*single input button*/
	div.formRow input[type="submit"]:first-child:nth-last-child(1) {
	    float: left;
	}
	/*two input buttons*/
	div.formRow input[type="submit"]:first-child:nth-last-child(2),
	div.formRow input[type="submit"]:first-child:nth-last-child(2) ~ div.formRow input[type="submit"] {
	    float: left;
	}
	
	div.formRow span.error{
		float: left;
		width: 24.9em;
		text-align: right;
	}
}

@media only screen and (max-width: 35em) {
    /* Style adjustments for smartphones? */
    div.mainLogo{
    	background-size: 18em;
    	width: 18em;
    	height: 8.2em;
    }
    div.loginbox{
    	padding: 4.4em 0 0 0;
    	width: 15em;
    }
    
    header.topbar h1{
    	font-size: 1.2em;
    	padding: 0.4em;
    	width: 10em;
    }
    
    nav.navpane{
    width: 100%;
    display: none;
    }
    
    section.content{
    	left: 0 !important;
    }
    
    /*Forms and form elements*/
	form.generic{
		width: 17em;
	}
	
	form.generic label{
		text-align: left;
	}
	
	form.generic label, form.generic input{
		width: 16.5em;
	}
	
	div.formRow input[type="submit"]{
		width: 7em;
	}
	
	/*single input button*/
	div.formRow input[type="submit"]:first-child:nth-last-child(1) {
	    float: left;
	}
	/*two input buttons*/
	div.formRow input[type="submit"]:first-child:nth-last-child(2),
	div.formRow input[type="submit"]:first-child:nth-last-child(2) ~ div.formRow input[type="submit"] {
	    float: left;
	}
	
	/*header buttons*/
	a.helpbutton{
		right: 4em;
	}
	div.formRow span.error{
		float: left;
		width: 21.1em;
		text-align: right;
	}
	
	div.session_message{
		margin-left: 0;
	}
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
